package com.yxlgateway.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yxlcommon.common.pojo.Category;
import com.yxlcommon.common.pojo.RespBean;
import com.yxlcommon.common.vo.CategoryVo;

public interface CategoryService extends IService<Category> {

    //查询所有分类
    RespBean listCategories();

    //查询一级分类下所有热门作品
    RespBean listHotFirstLevelCategories();

    //查询一级分类下所有新作
    RespBean listNewFistLevelCategories();

    //查询二级分类
    RespBean listSecondCategories();

    RespBean<IPage<Category>> getAllCategory(Integer currentPage, Integer size, Category category);

    RespBean<Integer> addCategory(CategoryVo category);

    RespBean<Integer> editCategoryName(Category category);

    RespBean<Category> selectCategoryById(Category category);

    RespBean<Integer> deleteCategoryById(Category category);
}
